<!--{include biz_header}-->
<link type="text/css" rel="stylesheet" 	href="/static/css/multiselect_css/powerFloat.css" />
<link type="text/css" rel="stylesheet" 	href="/static/css/multiselect_css/xmenu.css" />
<script type="text/javascript" src="/static/js/multiselect_js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/static/js/multiselect_js/jquery-powerFloat-min.js"></script>
<script type="text/javascript" src="/static/js/multiselect_js/jquery-xmenu.js"></script>
<style type="text/css">
body { font-size:14px; color:#666; font-family:'Microsoft Yahei', Tahoma, Arial!important; font-family:Tahoma, Arial;/* background:#dbdfe3;*/ }

</style>

<script type="text/javascript">

	$(document).ready(function() {
		var sh_languages = {};
		function sh_isEmailAddress(a){return/^mailto:/.test(a)?!1:a.indexOf("@")!==-1}
		function sh_setHref(a,b,c){var d=c.substring(a[b-2].pos,a[b-1].pos);d.length>=2&&d.charAt(0)==="<"&&d.charAt(d.length-1)===">"&&(d=d.substr(1,d.length-2)),sh_isEmailAddress(d)&&(d="mailto:"+d),a[b-2].node.href=d}
		function sh_konquerorExec(a){var b=[""];return b.index=a.length,b.input=a,b}
		function sh_highlightString(a,b){if(/Konqueror/.test(navigator.userAgent)&&!b.konquered){for(var c=0;c<b.length;c++)for(var d=0;d<b[c].length;d++){var e=b[c][d][0];e.source==="$"&&(e.exec=sh_konquerorExec)}b.konquered=!0}var f=document.createElement("a"),g=document.createElement("span"),h=[],i=0,j=[],k=0,l=null,m=function(b,c){var d=b.length;if(d===0)return;if(!c){var e=j.length;if(e!==0){var m=j[e-1];m[3]||(c=m[1])}}if(l!==c){l&&(h[i++]={pos:k},l==="sh_url"&&sh_setHref(h,i,a));if(c){var n;c==="sh_url"?n=f.cloneNode(!1):n=g.cloneNode(!1),n.className=c,h[i++]={node:n,pos:k}}}k+=d,l=c},n=/\r\n|\r|\n/g;n.lastIndex=0;var o=a.length;while(k<o){var p=k,q,r,s=n.exec(a);s===null?(q=o,r=o):(q=s.index,r=n.lastIndex);var t=a.substring(p,q),u=[];for(;;){var v=k-p,w,x=j.length;x===0?w=0:w=j[x-1][2];var y=b[w],z=y.length,A=u[w];A||(A=u[w]=[]);var B=null,C=-1;for(var D=0;D<z;D++){var E;if(D<A.length&&(A[D]===null||v<=A[D].index))E=A[D];else{var F=y[D][0];F.lastIndex=v,E=F.exec(t),A[D]=E}if(E!==null&&(B===null||E.index<B.index)){B=E,C=D;if(E.index===v)break}}if(B===null){m(t.substring(v),null);break}B.index>v&&m(t.substring(v,B.index),null);var G=y[C],H=G[1],I;if(H instanceof Array)for(var J=0;J<H.length;J++)I=B[J+1],m(I,H[J]);else I=B[0],m(I,H);switch(G[2]){case-1:break;case-2:j.pop();break;case-3:j.length=0;break;default:j.push(G)}}l&&(h[i++]={pos:k},l==="sh_url"&&sh_setHref(h,i,a),l=null),k=r}return h}
		function sh_getClasses(a){var b=[],c=a.className;if(c&&c.length>0){var d=c.split(" ");for(var e=0;e<d.length;e++)d[e].length>0&&b.push(d[e])}return b}
		function sh_addClass(a,b){var c=sh_getClasses(a);for(var d=0;d<c.length;d++)if(b.toLowerCase()===c[d].toLowerCase())return;c.push(b),a.className=c.join(" ")}
		function sh_extractTagsFromNodeList(a,b){var c=a.length;for(var d=0;d<c;d++){var e=a.item(d);switch(e.nodeType){case 1:if(e.nodeName.toLowerCase()==="br"){var f;/MSIE/.test(navigator.userAgent)?f="\r":f="\n",b.text.push(f),b.pos++}else b.tags.push({node:e.cloneNode(!1),pos:b.pos}),sh_extractTagsFromNodeList(e.childNodes,b),b.tags.push({pos:b.pos});break;case 3:case 4:b.text.push(e.data),b.pos+=e.length}}}
		function sh_extractTags(a,b){var c={};return c.text=[],c.tags=b,c.pos=0,sh_extractTagsFromNodeList(a.childNodes,c),c.text.join("")}
		function sh_mergeTags(a,b){var c=a.length;if(c===0)return b;var d=b.length;if(d===0)return a;var e=[],f=0,g=0;while(f<c&&g<d){var h=a[f],i=b[g];h.pos<=i.pos?(e.push(h),f++):(e.push(i),b[g+1].pos<=h.pos?(g++,e.push(b[g]),g++):(e.push({pos:h.pos}),b[g]={node:i.node.cloneNode(!1),pos:h.pos}))}while(f<c)e.push(a[f]),f++;while(g<d)e.push(b[g]),g++;return e}function sh_insertTags(a,b){var c=document,d=document.createDocumentFragment(),e=0,f=a.length,g=0,h=b.length,i=d;while(g<h||e<f){var j,k;e<f?(j=a[e],k=j.pos):k=h;if(k<=g){if(j.node){var l=j.node;i.appendChild(l),i=l}else i=i.parentNode;e++}else i.appendChild(c.createTextNode(b.substring(g,k))),g=k}return d}function sh_highlightElement(a,b){sh_addClass(a,"sh_sourceCode");var c=[],d=sh_extractTags(a,c),e=sh_highlightString(d,b),f=sh_mergeTags(c,e),g=sh_insertTags(f,d);while(a.hasChildNodes())a.removeChild(a.firstChild);a.appendChild(g)}				         function sh_getXMLHttpRequest(){if(window.ActiveXObject)return new ActiveXObject("Msxml2.XMLHTTP");if(window.XMLHttpRequest)return new XMLHttpRequest;throw"No XMLHttpRequest implementation available"}
		function sh_load(language,element,prefix,suffix){if(language in sh_requests){sh_requests[language].push(element);return}sh_requests[language]=[element];var request=sh_getXMLHttpRequest(),url=prefix+"sh_"+language+suffix;request.open("GET",url,!0),request.onreadystatechange=function(){if(request.readyState===4)try{if(!!request.status&&request.status!==200)throw"HTTP error: status "+request.status;eval(request.responseText);var elements=sh_requests[language];for(var i=0;i<elements.length;i++)sh_highlightElement(elements[i],sh_languages[language])}finally{request=null}},request.send(null)}
		function sh_highlightDocument(a,b){var c=document.getElementsByTagName("pre");
		for(var d=0;d<c.length;d++){var e=c.item(d),f=sh_getClasses(e);for(var g=0;g<f.length;g++){var h=f[g].toLowerCase();
		if(h==="sh_sourcecode")continue;if(h.substr(0,3)==="sh_"){var i=h.substring(3);if(i in sh_languages)sh_highlightElement(e,sh_languages[i]);else if(typeof a=="string"&&typeof b=="string")sh_load(i,e,a,b);else throw'Found <pre> element with class="'+h+'", but no such language exists';break}}}}var sh_requests={};sh_languages.javascript=[[[/\/\/\//g,"sh_comment",1],[/\/\//g,"sh_comment",7],[/\/\*\*/g,"sh_comment",8],[/\/\*/g,"sh_comment",9],[/\b(?:abstract|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|false|final|finally|for|function|goto|if|implements|in|instanceof|interface|native|new|null|private|protected|prototype|public|return|static|super|switch|synchronized|throw|throws|this|transient|true|try|typeof|var|volatile|while|with)\b/g,"sh_keyword",-1],[/(\+\+|--|\)|\])(\s*)(\/=?(?![*\/]))/g,["sh_symbol","sh_normal","sh_symbol"],-1],[/(0x[A-Fa-f0-9]+|(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?)(\s*)(\/(?![*\/]))/g,["sh_number","sh_normal","sh_symbol"],-1],[/([A-Za-z$_][A-Za-z0-9$_]*\s*)(\/=?(?![*\/]))/g,["sh_normal","sh_symbol"],-1],[/\/(?:\\.|[^*\\\/])(?:\\.|[^\\\/])*\/[gim]*/g,"sh_regexp",-1],[/\b[+-]?(?:(?:0x[A-Fa-f0-9]+)|(?:(?:[\d]*\.)?[\d]+(?:[eE][+-]?[\d]+)?))u?(?:(?:int(?:8|16|32|64))|L)?\b/g,"sh_number",-1],[/"/g,"sh_string",10],[/'/g,"sh_string",11],[/~|!|%|\^|\*|\(|\)|-|\+|=|\[|\]|\\|:|;|,|\.|\/|\?|&|<|>|\|/g,"sh_symbol",-1],[/\{|\}/g,"sh_cbracket",-1],
		[/\b(?:Math|Infinity|NaN|undefined|arguments)\b/g,"sh_predef_var",-1],[/\b(?:Array|Boolean|Date|Error|EvalError|Function|Number|Object|RangeError|ReferenceError|RegExp|String|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt)\b/g,"sh_predef_func",-1],
		[/\b(?:applicationCache|closed|Components|content|controllers|crypto|defaultStatus|dialogArguments|directories|document|frameElement|frames|fullScreen|globalStorage|history|innerHeight|innerWidth|length|location|locationbar|menubar|name|navigator|opener|outerHeight|outerWidth|pageXOffset|pageYOffset|parent|personalbar|pkcs11|returnValue|screen|availTop|availLeft|availHeight|availWidth|colorDepth|height|left|pixelDepth|top|width|screenX|screenY|scrollbars|scrollMaxX|scrollMaxY|scrollX|scrollY|self|sessionStorage|sidebar|status|statusbar|toolbar|top|window)\b/g,"sh_predef_var",-1],[/\b(?:alert|addEventListener|atob|back|blur|btoa|captureEvents|clearInterval|clearTimeout|close|confirm|dump|escape|find|focus|forward|getAttention|getComputedStyle|getSelection|home|moveBy|moveTo|open|openDialog|postMessage|print|prompt|releaseEvents|removeEventListener|resizeBy|resizeTo|scroll|scrollBy|scrollByLines|scrollByPages|scrollTo|setInterval|setTimeout|showModalDialog|sizeToContent|stop|unescape|updateCommands|onabort|onbeforeunload|onblur|onchange|onclick|onclose|oncontextmenu|ondragdrop|onerror|onfocus|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onpaint|onreset|onresize|onscroll|onselect|onsubmit|onunload)\b/g,"sh_predef_func",-1],
		[/(?:[A-Za-z]|_)[A-Za-z0-9_]*(?=[ \t]*\()/g,"sh_function",-1]],
		[[/$/g,null,-2],
		
		[/<\?xml/g,"sh_preproc",2,1],
		[/<!DOCTYPE/g,"sh_preproc",4,1],
		[/<!--/g,"sh_comment",5],
		[/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)(?:\/)?>/g,"sh_keyword",-1],[/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)/g,"sh_keyword",6,1],[/&(?:[A-Za-z0-9]+);/g,"sh_preproc",-1],[/<(?:\/)?[A-Za-z][A-Za-z0-9]*(?:\/)?>/g,"sh_keyword",-1],
		[/<(?:\/)?[A-Za-z][A-Za-z0-9]*/g,"sh_keyword",6,1],[/@[A-Za-z]+/g,"sh_type",-1],[/(?:TODO|FIXME|BUG)(?:[:]?)/g,"sh_todo",-1]],[[/\?>/g,"sh_preproc",-2],[/([^=" \t>]+)([ \t]*)(=?)/g,["sh_type","sh_normal","sh_symbol"],-1],[/"/g,"sh_string",3]],
		[[/\\(?:\\|")/g,null,-1],[/"/g,"sh_string",-2]],[[/>/g,"sh_preproc",-2],[/([^=" \t>]+)([ \t]*)(=?)/g,["sh_type","sh_normal","sh_symbol"],-1],[/"/g,"sh_string",3]],[[/-->/g,"sh_comment",-2],[/<!--/g,"sh_comment",5]],[[/(?:\/)?>/g,"sh_keyword",-2],[/([^=" \t>]+)([ \t]*)(=?)/g,["sh_type","sh_normal","sh_symbol"],-1],[/"/g,"sh_string",3]],[[/$/g,null,-2]],[[/\*\//g,"sh_comment",-2],
		
		[/<\?xml/g,"sh_preproc",2,1],
		[/<!DOCTYPE/g,"sh_preproc",4,1],
		[/<!--/g,"sh_comment",5],
		[/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)(?:\/)?>/g,"sh_keyword",-1],
		[/<(?:\/)?[A-Za-z](?:[A-Za-z0-9_:.-]*)/g,"sh_keyword",6,1],
		[/&(?:[A-Za-z0-9]+);/g,"sh_preproc",-1],
		[/<(?:\/)?[A-Za-z][A-Za-z0-9]*(?:\/)?>/g,"sh_keyword",-1],
		[/<(?:\/)?[A-Za-z][A-Za-z0-9]*/g,"sh_keyword",6,1],
		[/@[A-Za-z]+/g,"sh_type",-1],
		[/(?:TODO|FIXME|BUG)(?:[:]?)/g,"sh_todo",-1]],
		[[/\*\//g,"sh_comment",-2],
		
		[/(?:TODO|FIXME|BUG)(?:[:]?)/g,"sh_todo",-1]],
		[[/"/g,"sh_string",-2],[/\\./g,"sh_specialchar",-1]],[[/'/g,"sh_string",-2],[/\\./g,"sh_specialchar",-1]]];

		sh_highlightDocument();	
		
		$("#selectpos").xMenu({
			width :800,
			eventType: "click", //事件类型 支持focus click hover
			dropmenu:"#m1",//弹出层
			hiddenID : "selectposhidden"//隐藏域ID		
			
		});
		
		
		$("#selectdept").xMenu({
			width :800, 
			eventType: "click", //事件类型 支持focus click hover
			dropmenu:"#m2",//弹出层
			hiddenID : "selectdeptidden"//隐藏域ID		
			
		});
				
	});
	</script>
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="/biz/teams/edit.php">发布团购</a></li>
	<li style="float:right;  ">
	 <a href="javascript::" style="padding-right:30px;color:#3B95C8; font-size:22px;">
     <!--{if is_partner()}-->{$login_partner['title']}！<!--{/if}-->
	</a> </li>
    </ul>
</div>
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="leader">
	<div class="dashboard" id="dashboard">
		<!--{if $team['id']}-->
		<ul>${bcurrent_biz_team('team')}</ul>
		<!--{/if}-->
	</div>
	<div id="content" class="clear mainwide">
        <div class="clear box">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                <div class="formtitle" style="padding-left:6px;">
                    <!--{if $team['id']}-->
					<span>编辑团购</span> 
				<!--{else}-->
					<span>发布团购</span> 
				<!--{/if}-->
                </div>
				
				</div>
                <div class="sect">
				<form id="-user-form" method="post" action="/biz/teams/edit.php?id={$team['id']}" enctype="multipart/form-data" class="validator">
					<input type="hidden" name="id" value="{$team['id']}" />
					<div class="wholetip clear"><h3>1、基本信息</h3></div>
					<div class="field">
						<label>项目类型</label>
						<select name="team_type" class="f-input" style="width:160px;" onchange="X.team.changetype(this.options[this.options.selectedIndex].value);">${Utility::Option($option_teamtype, $team['team_type'])}</select>
						<select name="group_id" onchange="changecate(this.options[this.options.selectedIndex].value);" class="f-input" style="width:160px;">${Utility::Option($groups, $team['group_id'])}</select>
                        <select name="sub_id" class="f-input" id="sub_id" style="width:160px;"><option value="0">选择细分类</option>${Utility::Option($level_groups, $team['sub_id'])}</select>
					</div>
					<!--<div class="field">
						<label>团购类型</label>
						
						<select name="group_id" onchange="changecate(this.options[this.options.selectedIndex].value);" class="f-input" style="width:160px;">${Utility::Option($groups, $team['group_id'])}</select>

                        <select name="sub_id" class="f-input" id="sub_id" style="width:160px;"><option value="0">选择细分类</option>${Utility::Option($level_groups, $team['sub_id'])}</select>
					</div>-->
	                <div class="field">
						<label>所属商圈：</label>
    <div id="lead" class="card" style="display:inline-block;">
                                     <div class="topnav" style="display:inline-block;">
                                        <a id="selectpos" href="javascript:void(0);" class="as">
                                            <span>选择城市</span>			
                                        </a>	
                                    </div>
                                    <div class="topnav" style="display:inline-block;">
                                        <a id="selectdept" href="javascript:void(0);" class="as">
                                            <span>选择区域</span>
                                        </a>
                                    </div>	
                                <input type="hidden" value="" id="selectposhidden" name="city_ids"/>
                                <input type="hidden" value="" id="selectdeptidden" name="area_ids"/>
                        </div>
                         <div id="m1" class="xmenu" style="display: none;">
				<div class="select-info">	
					<span class="top-label">已选城市：</span>
					<ul>					
					</ul>
					<a  name="menu-confirm" href="javascript:void(0);" class="a-btn">
						<span class="a-btn-text">确定</span>
					</a> 
				</div>			
				<dl>
					<dt class="open">城市</dt>
						<dd>       
							<ul>
                            <!--{loop $allcity $index $city}-->
                            <li rel="{$city['id']}" >{$city['name']}</li>
							<!--{/loop}-->
							</ul>						
						</dd>
				</dl>			
			</div>
	  		
	 <div id="m2" class="xmenu" style="display: none;">
			<div class="select-info">	
				<span class="top-label">已选区域：</span>
				<ul>
					
				</ul>
				<a  name="menu-confirm" href="javascript:void(0);" class="a-btn">
					<span class="a-btn-text">确定</span>
				</a> 
			</div>	
			<dl>
            <!--{loop $allcity $index $city}-->
				<dt class="open">{$city['name']}</dt>
					<dd>       
						<ul>
                        <!--{loop $city[areas] $k $area}-->
							<li rel="{$area['id']}">{$area['name']}</li>
							
                            <!--{/loop}-->					
						</ul>						
					</dd>
				
                <!--{/loop}-->
            </dl>
				 
		</div>

					</div>
					<div class="field" id="field_limit">
						<label>限制条件</label>
						<select name="conduser" class="f-input" style="width:160px;">${Utility::Option($option_cond, $team['conduser'])}</select>
						<select name="buyonce" class="f-input" style="width:160px;">${Utility::Option($option_buyonce, $team['buyonce'])}</select>
					</div>
					<div class="field">
						<label>团购标题</label>
						<input type="text" size="30" name="title" id="team-create-title" class="f-input" value="${htmlspecialchars($team['title'])}" datatype="require" require="true" />
					</div>
					<div class="field">
						<label>市场价</label>
						<input type="text" size="10" name="market_price" id="team-create-market-price" class="number" value="${moneyit($team['market_price'])}" datatype="money" require="true" />
						<label>网站价</label>
						<input type="text" size="10" name="team_price" id="team-create-team-price" class="number" value="${moneyit($team['team_price'])}" datatype="double" require="true" />
						<!-- 商家后台自助插件 之商户结算插件 成本价 -->
						<label>成本价</label>
						<input type="text" size="10" name="cost_price" id="team-create-cost-price" class="number" value="${moneyit($team['cost_price'])}" datatype="money" require="true" />

						<label>虚拟购买</label>
						<input type="text" size="10" name="pre_number" id="team-create-pre_number" class="number" value="${moneyit($team['pre_number'])}" datatype="number" require="true" />
					</div>
					<div class="field">
						<label>最低数量</label>
						<input type="text" size="10" name="min_number" id="team-create-min-number" class="number" value="${intval($team['min_number'])}" maxLength="6" datatype="number" require="true" />
						<label>最高数量</label>
						<input type="text" size="10" name="max_number" id="team-create-max-number" class="number" value="${intval($team['max_number'])}" maxLength="6" datatype="number" require="true" />
						<label>每人限购</label>
						<input type="text" size="10" name="per_number" id="team-create-per-number" class="number" value="${intval($team['per_number'])}" maxLength="6" datatype="number" require="true" />
					        <label>最低购买</label>
						<input type="text" size="10" name="permin_number" id="team-create-per-min-number" class="number" value="${intval($team['permin_number'])}" maxLength="6" datatype="number" require="true" />
                                          	<span class="hint">最低数量必须大于0，最高数量/每人限购：0 表示没最高上限 （产品数|人数 由成团条件决定）</span>
					</div>
					<div class="field">
						<label>开始时间</label>
						<input type="text" size="10" name="begin_time" id="team-create-begin-time" class="date" xd="${date('Y-m-d', $team['begin_time'])}" xt="${date('H:i:s', $team['begin_time'])}" value="${date('Y-m-d H:i:s', $team['begin_time'])}" maxLength="10" />
						<label>结束时间</label>
						<input type="text" size="10" name="end_time" id="team-create-end-time" class="date" xd="${date('Y-m-d', $team['end_time'])}" xt="${date('H:i:s', $team['end_time'])}" value="${date('Y-m-d H:i:s', $team['end_time'])}" maxLength="10" />
						<label>{$INI['system']['couponname']}有效期</label>
						<input type="text" size="10" name="expire_time" id="team-create-expire-time" class="number" value="${date('Y-m-d', $team['expire_time'])}" maxLength="10" />
						<span class="hint">时间格式：hh:ii:ss (例：14:05:58)，日期格式：YYYY-MM-DD （例：2010-06-10）</span>
					</div>
					
					<div class="field">
						<label>允许退款</label>

								<input type="checkbox" class="allowrefund" name="allowrefund" value="Y" <!--{if $team['allowrefund']=='Y'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<span style="font-size:12px;color:#989898;">本项目允许用户发起 申请退款</span>						 
					</div>
                    <div class="field">
						<label>首页推荐</label>

								<input type="checkbox" class="allowrefund" name="index_rec" value="Y" <!--{if $team['index_rec']=='Y'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;<span style="font-size:12px;color:#989898;">首页推荐项目 </span>						 
					</div>
                     <div class="field">
						<label>免预约</label>

								<input type="checkbox" class="allowrefund" name="free_yuyue" value="Y" <!--{if $team['free_yuyue']=='Y'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;					 
					</div>
                    <div class="field">
						<label>周末通用</label>

								<input type="checkbox" class="allowrefund" name="weekend" value="Y" <!--{if $team['weekend']=='Y'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;					 
					</div>
                    <div class="field">
						<label>节假日通用</label>

								<input type="checkbox" class="allowrefund" name="holiday" value="Y" <!--{if $team['holiday']=='Y'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;					 
					</div>
                    <div class="field">
						<label>无线WIFI</label>

								<input type="checkbox" class="allowrefund" name="wifi" value="Y" <!--{if $team['wifi']=='Y'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;					 
					</div>
                    <div class="field">
						<label>停车位</label>

								<input type="checkbox" class="allowrefund" name="park" value="Y" <!--{if $team['park']=='Y'}-->checked<!--{/if}-->/>&nbsp;是&nbsp;&nbsp;					 
					</div>
					<div class="field">
						<label>本单评分</label>

								<input type="text"  size="10" name="score" value="<!--{if $team['score']}-->{$team['score']}<!--{else}-->5.0<!--{/if}-->" />	
                                <span style="font-size:12px;color:#989898;">填写0.0-5.0之间的数字 </span>								 
					</div>
					
					
	
					<!--kxx 增加-->
					<div class="field">
						<label>排序</label>
						<input type="text" size="10" name="sort_order" id="team-create-sort_order" class="number" value="${$team['sort_order'] ? $team['sort_order'] : 0}" datatype="number"/><span class="inputtip">请填写数字，数值大到小排序，主推团购应设置较大值</span>
					</div>
					<!--xxk-->
					<input type="hidden" name="guarantee" value="Y" />
					<input type="hidden" name="system" value="Y" />
					
					<div class="field">
						<label>温馨提示</label> 
						<div style="float:left;"><textarea cols="45" rows="5" name="summary" id="forum-new-content1" class="f-textarea editor" style="width:710px;height:150px;">${htmlspecialchars($team['summary'])}</textarea></div>
					</div>
                    <div class="field">
						<label>团购详情</label>
						<div style="float:left;"><textarea cols="45" rows="5" name="detail" id="forum-new-content2" class="f-textarea editor" style="width:710px;height:150px;">${htmlspecialchars($team['detail'])}</textarea></div>
					</div>
					<!--<div class="field">
						<label>特别提示</label>
						<div style="float:left;"><textarea cols="45" rows="5" name="notice" id="forum-new-content1" class="f-textarea editor" style="width:710px;height:150px;">{$team['notice']}</textarea></div>
						<span class="hint">关于本单团购的有效期及使用说明</span>
					</div>-->
					<div class="field">
                            <label>附近的团购</label>
                       <input type="text" size="20" name="fj_team_id" id="team-create-fj_team_id" class="f-input" value="{$team['fj_team_id']}" />
							<span class="hint">填写商品ID用英文逗号隔开例如：12,65,45,32</span>
                    </div>
					
					<div class="wholetip clear"><h3>2、团购信息</h3></div>
					<div class="field">
						<label>商户</label>
						<select name="partner_id" datatype="require" require="require" class="f-input" style="width:200px;">${Utility::Option($partners, $partner_id, '')}</select><span class="inputtip" style="color:#FF0000;">商户不可修改</span>
					</div>
					<div class="field" id="field_card">
						<label>代金券使用</label>
						<input type="text" size="10" name="card" id="team-create-card" class="number" value="${moneyit($team['card'])}" require="true" datatype="money" />
						<span class="inputtip">可使用代金券最大面额(<font color="#FF0000">暂不对商家开放</font>)</span>
					</div>
					<div class="field" id="field_card">
						<label>邀请返利</label>
						<input type="text" size="10" name="bonus" id="team-create-bonus" class="number" value="${moneyit($team['bonus'])}" require="true" datatype="money" />
						<span class="inputtip">邀请好友参与本单商品购买时的返利金额(<font color="#FF0000">暂不对商家开放</font>)</span>
					</div>
					<div class="field">
						<label>商品名称</label>
						<input type="text" size="30" name="product" id="team-create-product" class="f-input" value="{$team['product']}" datatype="require" require="true" />
					</div>
					<div class="field">
						<label>购买必选项</label>
						<input type="text" size="30" name="condbuy" id="team-create-condbuy" class="f-input" value="{$team['condbuy']}" />
						<span class="hint">格式如：{黄色}{绿色}{红色}@{大号}{中号}{小号}@{男款}{女款}，分组使用@符号分隔 , 用户购买的必选项</span>
					</div>
					<div class="field">
						<label>商品图片</label>
						<input type="file" size="30" name="upload_image" id="team-create-image" class="f-input" />
						<!--{if $team['image']}--><span class="hint">${team_image($team['image'])}</span><!--{/if}-->
					</div>
					<div class="field">
						<label>商品图片1</label>
						<input type="file" size="30" name="upload_image1" id="team-create-image1" class="f-input" />
						<!--{if $team['image1']}--><span class="hint" id="team_image_1">${team_image($team['image1'])}&nbsp;&nbsp;<a href="javascript:;" onclick="X.team.imageremove({$team['id']}, 1);">删除</a></span><!--{/if}-->
					</div>
					<div class="field">
						<label>商品图片2</label>
						<input type="file" size="30" name="upload_image2" id="team-create-image2" class="f-input" />
						<!--{if $team['image2']}--><span class="hint" id="team_image_2">${team_image($team['image2'])}&nbsp;&nbsp;<a href="javascript:;" onclick="X.team.imageremove({$team['id']}, 2);">删除</a></span><!--{/if}-->
					</div>
					<div class="field">
						<label>FLV视频短片</label>
						<input type="text" size="30" name="flv" id="team-create-flv" class="f-input" value="{$team['flv']}" />
						<span class="hint">形式如：http://.../video.flv</span>
					</div>
					
					<!--<div class="field" id="field_userreview">
						<label>网友点评</label>
						<div style="float:left;"><textarea cols="45" rows="5" name="userreview" id="forum-new-content3" class="f-textarea">${htmlspecialchars($team['userreview'])}</textarea></div>
						<span class="hint">格式：“真好用|小兔|http://ww....|XXX网”，每行写一个点评</span>
					</div>
					<div class="field">
						<label>{$INI['system']['abbreviation']}推广辞</label>
						<div style="float:left;"><textarea cols="45" rows="5" name="systemreview" id="forum-new-content4" class="f-textarea editor" style="width:710px;height:150px;">${htmlspecialchars($team['systemreview'])}</textarea></div>
					</div>-->
					<div class="wholetip clear"><h3>3、配送信息</h3></div>
					<div class="field">
						<label>递送方式</label>
						<div style="margin-top:5px;" id="express-zone-div">
							<input type="radio" name="delivery" class="delivery" value="coupon" ${$team['delivery']=='coupon'?'checked':''} />&nbsp;{$INI['system']['couponname']}&nbsp;
							<input type="radio" name="delivery" class="delivery" value='voucher' ${$team['delivery']=='voucher'?'checked':''} />&nbsp;商户券&nbsp;
							<input type="radio" name="delivery" class="delivery" value='express' ${$team['delivery']=='express'?'checked':''} />&nbsp;快递</div>
						<span class="hint" style="color:#FF0000;">商户券项目提交后,请联系网站管理员上传</span>
					</div>
					<div id="express-zone-coupon" style="display:${$team['delivery']=='coupon'?'block':'none'};">
						<div class="field">
							<label>消费返利</label>
							<input type="text" size="10" name="credit" id="team-create-credit" class="number" value="${moneyit($team['credit'])}" datatype="money" require="true" />
							<span class="inputtip">消费{$INI['system']['couponname']}时，获得账户余额返利，单位CNY元(<font color="#FF0000">暂不对商家开放</font>)</span>
						</div>
					</div>
					<div id="express-zone-pickup" style="display:${$team['delivery']=='pickup'?'block':'none'};">
						<div class="field">
							<label>联系电话</label>
							<input type="text" size="10" name="mobile" id="team-create-mobile" class="f-input" value="{$team['mobile']}" />
						</div>
						<div class="field">
							<label>自取地址</label>
							<input type="text" size="10" name="address" id="team-create-address" class="f-input" value="{$team['address']}" />
						</div>
					</div>
					<div id="express-zone-express" style="display:${$team['delivery']=='express'?'block':'none'};">
						<div class="field">
							<label>快递</label>
							<table style="font-size:14px;width:400px;"><tbody>
								<tr>
									<td width="10%"></td>
									<td width="20%">名称</td>
									<td width=>价格<td>
								</tr>
							<!--{loop $express $index $one}-->
								<tr>
									<td><input type="checkbox" name="express_relate[]" value="{$one['id']}" {$one['checked']} class="express_relate"  datatype="require" require="true" /></td>
									<td>{$one['name']}</td>
									<td><input name="express_price_{$one['id']}" value="{$one['relate_data']}"></td>
								</tr>
							<!-- {/loop} -->
							</tbody></table>
						</div>
						<div class="field">
							<!-- <label>快递费用</label>
							<input type="text" size="10" name="fare" id="team-create-fare" class="number" value="${intval($team['fare'])}" maxLength="6" datatype="money" require="true" />
							 -->
							<label>免单数量</label>
							<input type="text" size="10" name="farefree" id="team-create-farefree" class="number" value="${intval($team['farefree'])}" maxLength="6" datatype="integer" require="true" />
							<span class="hint">免单数量：-1表示免运费, 0表示不免运费，1表示，购买1件免运费, 2表示，购买2件免运费 ,以此类推</span>
						</div>
						<div class="field">
							<label>配送说明</label>
							<div style="float:left;"><textarea cols="45" rows="5" name="express" id="team-create-express" class="f-textarea">{$team['express']}</textarea></div>
						</div>
					</div>
					<div class="wholetip clear"><h3>4、提交审核</h3></div>
					<div class="field">
							<label>留言</label>
							<div style="float:left;"><textarea cols="45" rows="5" name="business_content" id="team-business_content" class="f-textarea">{$team['business_content']}</textarea></div>
						</div>
					<div class="field">
                            <label>立即提交</label>
							<select name="business_audit" style="float:left;">
								<option value='Y' <!--{if $team['business_audit'] == 'F'}-->selected<!--{/if}-->>是</option>
								<option value='N' <!--{if $team['business_audit'] == 'N'}-->selected<!--{/if}-->>否</option>
							</select>
							<span class="hint">是否立即提交审核，提交审核后不可修改！</span>
					</div>
                    <div class="field">
					<input type="submit" value="好了，提交" name="commit" id="leader-submit" class="formbutton" style="margin:10px 0 0 120px;cursor:pointer;width:150px;height:40px;"/>
                    </div>
				</form>
                </div>
            </div>
            <div class="box-bottom"></div>
        </div>
	</div>
<div id="sidebar">
</div>

</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->
<script type="text/javascript">
window.x_init_hook_teamchangetype = function(){
	X.team.changetype("{$team['team_type']}");
};
window.x_init_hook_page = function() {
	X.team.imageremovecall = function(v) {
		jQuery('#team_image_'+v).remove();
	};
	X.team.imageremove = function(id, v) {
		return !X.get(WEB_ROOT + '/ajax/misc.php?action=imageremove&id='+id+'&v='+v);
	};
};
$(function(){
	$('#city_all').click(function(){
		if($(this).attr('checked') == true){
			$('.city_checkbox').attr('checked',true);
		}else{
			$('.city_checkbox').attr('checked',false);
		}
	});
	$('.city_checkbox').click(function(){
		if($(this).attr('checked') == false){
			$('#city_all').attr('checked',false);
		}
	});
	$('.field input[name="p_id"]').keyup(function(){
		$.get("part.php",{
				'value':$("#partner_id").val()
			},function(data){
			s = $("#partner_id").val();
			if(data=='0') $("#partner_id").css('color','#FFCC33');
			else $("#partner_select").load('part.php?value='+s );
		});
	});

});
function changecate(cid) {
	$.get("category.php",{
		'cateid':cid
		},function(data){
			$("#sub_id").load('category.php?cateid='+cid );
		});
}

function changeArea(self,fid,zone){
	$this=$(self);
	$.get("area.php",{
		'fid':fid,
		'zone':zone
		},function(data){
			$this.next().html(data);
			if(self.name=='city_id'){
				$this.next().next().html('<option value="">选择商圈</option>');
			}
		});
}

</script>
<!--{include biz_footer}-->
